package com.hnevc.interfacedemo;

interface Animal {
	String ANIMAL_BEHAVIOR ="动物的行为";
	void breath();
	void run();
}
interface A{	void a();  }
interface B{	void b();  }
interface C extends B,A{  void c();  }  
class D implements C{
	public void b() {	}
	public void a() {   }
	public void c() {   }	
}


class Dog implements Animal{
	public void breath() {
		System.out.println(ANIMAL_BEHAVIOR+"狗在呼吸！");		
	}
	public void run() {
		System.out.println(ANIMAL_BEHAVIOR+"狗在奔跑！");	
	}
}



